package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TbGarbageMail;

/**
 * 垃圾邮件表Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
public interface TbGarbageMailMapper 
{
    /**
     * 查询垃圾邮件表
     * 
     * @param spamId 垃圾邮件表主键
     * @return 垃圾邮件表
     */
    public TbGarbageMail selectTbGarbageMailBySpamId(Long spamId);

    /**
     * 查询垃圾邮件表列表
     * 
     * @param tbGarbageMail 垃圾邮件表
     * @return 垃圾邮件表集合
     */
    public List<TbGarbageMail> selectTbGarbageMailList(TbGarbageMail tbGarbageMail);

    /**
     * 新增垃圾邮件表
     * 
     * @param tbGarbageMail 垃圾邮件表
     * @return 结果
     */
    public int insertTbGarbageMail(TbGarbageMail tbGarbageMail);

    /**
     * 修改垃圾邮件表
     * 
     * @param tbGarbageMail 垃圾邮件表
     * @return 结果
     */
    public int updateTbGarbageMail(TbGarbageMail tbGarbageMail);

    /**
     * 删除垃圾邮件表
     * 
     * @param spamId 垃圾邮件表主键
     * @return 结果
     */
    public int deleteTbGarbageMailBySpamId(Long spamId);

    /**
     * 批量删除垃圾邮件表
     * 
     * @param spamIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbGarbageMailBySpamIds(Long[] spamIds);
}
